//
//  YearModel.m
//  仿系统日历
//
//  Created by 王猛 on 2022/11/16.
//

#import "YearModel.h"

@implementation YearModel

- (void)setYear:(NSInteger)year {
    _year = year;
    NSArray *list1 = @[@"庚",@"辛",@"壬",@"癸",@"甲",@"乙",@"丙",@"丁",@"戊",@"己"];
    NSArray *list2 = @[@"申",@"酉",@"戌",@"亥",@"子",@"丑",@"寅",@"卯",@"辰",@"巳",@"午",@"未"];
    NSArray *list3 = @[@"猴",@"鸡",@"狗",@"猪",@"鼠",@"牛",@"虎",@"兔",@"龙",@"蛇",@"马",@"羊"];
    NSString *text1 = list1[self.year % 10];
    NSString *text2 = list2[self.year % 12];
    NSString *text3 = list3[self.year % 12];
    
    self.chineseYear = [NSString stringWithFormat:@"%@%@%@年",text1,text2,text3];
}

@end

@implementation MonthModel

@end

@implementation DayModel

@end
